package com.yoda.mall.api;

import com.yoda.mall.model.entity.pms.ProductAttribute;
import com.yoda.mall.model.entity.pms.ProductAttributeCategory;
import com.yoda.mall.model.vo.PageResult;

import java.util.List;

/**
 * @author wangjia
 * @date 2022/12/17
 * @Description
 */
public interface ProductAttributeApi {
    Boolean addProduct(String name);

    void delete(Long id);

    ProductAttributeCategory findById(Long id);

    void update(Long id, String name);

    PageResult<ProductAttributeCategory> list(Integer pageNum, Integer pageSize);

    List<ProductAttributeCategory> findAll();

    ProductAttribute findAttribute(Long productCategoryId);
}
